forked from mirror/pixelfed
Merge pull request #1344 from pixelfed/frontend-ui-refactor
Frontend ui refactor
This commit is contained in:
commit
c616a99d24
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -4,8 +4,8 @@
|
||||||
"/css/app.css": "/css/app.css?id=3a974ff74b6b5905a73c",
|
"/css/app.css": "/css/app.css?id=3a974ff74b6b5905a73c",
|
||||||
"/css/appdark.css": "/css/appdark.css?id=107806a000e2ca675a3c",
|
"/css/appdark.css": "/css/appdark.css?id=107806a000e2ca675a3c",
|
||||||
"/css/landing.css": "/css/landing.css?id=d3610108213e88dc080c",
|
"/css/landing.css": "/css/landing.css?id=d3610108213e88dc080c",
|
||||||
"/js/components.js": "/js/components.js?id=ddc135bc319514161701",
|
"/js/components.js": "/js/components.js?id=25d082643150ee79150c",
|
||||||
"/js/compose.js": "/js/compose.js?id=f69f248dc1cfcb8ae092",
|
"/js/compose.js": "/js/compose.js?id=905ec24258f595df861b",
|
||||||
"/js/developers.js": "/js/developers.js?id=1359f11c7349301903f8",
|
"/js/developers.js": "/js/developers.js?id=1359f11c7349301903f8",
|
||||||
"/js/discover.js": "/js/discover.js?id=0625385218493e556ccc",
|
"/js/discover.js": "/js/discover.js?id=0625385218493e556ccc",
|
||||||
"/js/loops.js": "/js/loops.js?id=0677173fdad43d0687ba",
|
"/js/loops.js": "/js/loops.js?id=0677173fdad43d0687ba",
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
<p class="text-center mb-0 font-weight-bold text-white"><i class="fas fa-plus mr-1"></i> Add Photo</p>
|
<p class="text-center mb-0 font-weight-bold text-white"><i class="fas fa-plus mr-1"></i> Add Photo</p>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="ids.length == 0" class="w-100 h-100 bg-light py-5 cursor-pointer" style="border-bottom: 1px solid #f1f1f1" v-on:click="addMedia($event)">
|
<div v-if="ids.length == 0" class="w-100 h-100 bg-light py-5 cursor-pointer" style="border-bottom: 1px solid #f1f1f1" v-on:click="addMedia($event)">
|
||||||
<p class="text-center mb-0 font-weight-bold p-5">Click here to add photos</p>
|
<p class="text-center mb-0 font-weight-bold p-5">{{composeMessage()}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="ids.length > 0">
|
<div v-if="ids.length > 0">
|
||||||
|
|
||||||
|
@ -527,6 +527,16 @@ export default {
|
||||||
closeModal() {
|
closeModal() {
|
||||||
this.composeType = '';
|
this.composeType = '';
|
||||||
$('#composeModal').modal('hide');
|
$('#composeModal').modal('hide');
|
||||||
|
},
|
||||||
|
|
||||||
|
composeMessage() {
|
||||||
|
let config = this.config;
|
||||||
|
let composeType = this.composeType;
|
||||||
|
let video = config.uploader.media_types.includes('video/mp4');
|
||||||
|
|
||||||
|
return video ?
|
||||||
|
'Click here to add photos or videos' :
|
||||||
|
'Click here to add photos';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue