diff --git a/resources/assets/js/components/ComposeModal.vue b/resources/assets/js/components/ComposeModal.vue index e2c054ac3..e118f189c 100644 --- a/resources/assets/js/components/ComposeModal.vue +++ b/resources/assets/js/components/ComposeModal.vue @@ -12,6 +12,7 @@ +
@@ -42,6 +43,7 @@
+
@@ -91,8 +93,21 @@
+
+
+
+ {{item.name}} +
+
+
- test
@@ -315,7 +330,10 @@
-

Tag people NEW

+

Tag people

+
+
+

Add license NEW

Add location

@@ -565,11 +583,19 @@
- -

+ + +

@@ -707,7 +733,8 @@ export default { 'editMedia', 'cameraRoll', 'tagPeopleHelp', - 'textOptions' + 'textOptions', + 'licensePicker' ], cameraRollMedia: [], taggedUsernames: [], @@ -744,7 +771,46 @@ export default { }) } ] - } + }, + availableLicenses: [ + { + id: 1, + name: "All Rights Reserved" + }, + { + id: 5, + name: "Public Domain Work" + }, + { + id: 6, + name: "Public Domain Dedication (CC0)" + }, + { + id: 11, + name: "Attribution" + }, + { + id: 12, + name: "Attribution-ShareAlike" + }, + { + id: 13, + name: "Attribution-NonCommercial" + }, + { + id: 14, + name: "Attribution-NonCommercial-ShareAlike" + }, + { + id: 15, + name: "Attribution-NoDerivs" + }, + { + id: 16, + name: "Attribution-NonCommercial-NoDerivs" + } + ], + licenseIndex: 0 } }, @@ -934,7 +1000,8 @@ export default { comments_disabled: this.commentsDisabled, place: this.place, tagged: this.taggedUsernames, - optimize_media: this.optimizeMedia + optimize_media: this.optimizeMedia, + license: this.availableLicenses[this.licenseIndex].id }; axios.post('/api/compose/v0/publish', data) .then(res => { @@ -1026,6 +1093,10 @@ export default { this.showTagCard(); break; + case 'licensePicker': + this.page = 3; + break; + default: this.namedPages.indexOf(this.page) != -1 ? this.page = (this.textMode ? 'addText' : 3) : @@ -1270,7 +1341,18 @@ export default { showTextOptions() { this.page = 'textOptions'; this.pageTitle = 'Text Post Options'; - } + }, + + showLicenseCard() { + this.pageTitle = 'Select a License'; + this.page = 'licensePicker'; + }, + + toggleLicense(index) { + this.licenseIndex = index; + this.pageTitle = ''; + this.page = 3; + }, } } \ No newline at end of file diff --git a/resources/assets/js/components/presenter/PhotoPresenter.vue b/resources/assets/js/components/presenter/PhotoPresenter.vue index 85f23e8a1..d350c7aea 100644 --- a/resources/assets/js/components/presenter/PhotoPresenter.vue +++ b/resources/assets/js/components/presenter/PhotoPresenter.vue @@ -22,7 +22,7 @@ :alt="altText(status)"/>
-
+
+ +

Photo by @{{status.account.username}} licensed under {{status.media_attachments[0].license.title}}