mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02:00
Merge pull request #1529 from pixelfed/frontend-ui-refactor
Update ComposeModal, fixes #1527
This commit is contained in:
commit
0ed156102b
3 changed files with 6 additions and 6 deletions
2
public/js/compose.js
vendored
2
public/js/compose.js
vendored
File diff suppressed because one or more lines are too long
|
@ -11,7 +11,7 @@
|
||||||
"/js/collectioncompose.js": "/js/collectioncompose.js?id=a117b4e0b1d2fd859de5",
|
"/js/collectioncompose.js": "/js/collectioncompose.js?id=a117b4e0b1d2fd859de5",
|
||||||
"/js/collections.js": "/js/collections.js?id=93bac411f11eb701648f",
|
"/js/collections.js": "/js/collections.js?id=93bac411f11eb701648f",
|
||||||
"/js/components.js": "/js/components.js?id=7e4df37c02f12db5ef96",
|
"/js/components.js": "/js/components.js?id=7e4df37c02f12db5ef96",
|
||||||
"/js/compose.js": "/js/compose.js?id=df5bd23aef5b73027cce",
|
"/js/compose.js": "/js/compose.js?id=f3e4cdf34dfdd8331714",
|
||||||
"/js/developers.js": "/js/developers.js?id=a395f12c52bb0eada6ab",
|
"/js/developers.js": "/js/developers.js?id=a395f12c52bb0eada6ab",
|
||||||
"/js/discover.js": "/js/discover.js?id=f8da29f2b16ae5be93fd",
|
"/js/discover.js": "/js/discover.js?id=f8da29f2b16ae5be93fd",
|
||||||
"/js/hashtag.js": "/js/hashtag.js?id=b4ffe6499880acf0591c",
|
"/js/hashtag.js": "/js/hashtag.js?id=b4ffe6499880acf0591c",
|
||||||
|
|
|
@ -73,8 +73,8 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="ids.length > 0 && media[carouselCursor].type == 'Image'" class="bg-lighter p-2 row">
|
<div v-if="ids.length > 0 && ['Image', 'Video'].indexOf(media[carouselCursor].type)" class="bg-lighter p-2 row">
|
||||||
<div class="col-12">
|
<div v-if="media[carouselCursor].type == 'Image'" class="col-12">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<input type="text" class="form-control" v-model="media[carouselCursor].alt" placeholder="Optional image description">
|
<input type="text" class="form-control" v-model="media[carouselCursor].alt" placeholder="Optional image description">
|
||||||
</div>
|
</div>
|
||||||
|
@ -88,7 +88,7 @@
|
||||||
<button class="btn btn-outline-secondary btn-sm"><i class="fas fa-tools"></i></button>
|
<button class="btn btn-outline-secondary btn-sm"><i class="fas fa-tools"></i></button>
|
||||||
</div> -->
|
</div> -->
|
||||||
<div class="col-12 text-right pt-2">
|
<div class="col-12 text-right pt-2">
|
||||||
<button class="btn btn-outline-danger btn-sm font-weight-bold mr-1" v-on:click="deleteMedia()">Delete Photo</button>
|
<button class="btn btn-outline-danger btn-sm font-weight-bold mr-1" v-on:click="deleteMedia()">Delete Media</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -380,7 +380,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
deleteMedia() {
|
deleteMedia() {
|
||||||
if(window.confirm('Are you sure you want to delete this photo?') == false) {
|
if(window.confirm('Are you sure you want to delete this media?') == false) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let id = this.media[this.carouselCursor].id;
|
let id = this.media[this.carouselCursor].id;
|
||||||
|
|
Loading…
Add table
Reference in a new issue