mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/posts: don't define flags on post upload
This commit is contained in:
@ -64,16 +64,6 @@
|
||||
}) %>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
<% if (['video'].includes(ctx.uploadable.type)) { %>
|
||||
<div class='loop-video'>
|
||||
<%= ctx.makeCheckbox({
|
||||
text: 'Loop video',
|
||||
name: 'loop-video',
|
||||
checked: ctx.uploadable.flags.includes('loop'),
|
||||
}) %>
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
|
||||
<div class='messages'></div>
|
||||
|
@ -49,12 +49,6 @@ class Uploadable extends events.EventTarget {
|
||||
get name() {
|
||||
throw new Error('Not implemented');
|
||||
}
|
||||
|
||||
_initComplete() {
|
||||
if (['video'].includes(this.type)) {
|
||||
this.flags.push('loop');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class File extends Uploadable {
|
||||
@ -74,7 +68,6 @@ class File extends Uploadable {
|
||||
new CustomEvent('finish', {detail: {uploadable: this}}));
|
||||
});
|
||||
}
|
||||
this._initComplete();
|
||||
}
|
||||
|
||||
destroy() {
|
||||
@ -105,7 +98,6 @@ class Url extends Uploadable {
|
||||
super();
|
||||
this.url = url;
|
||||
this.dispatchEvent(new CustomEvent('finish'));
|
||||
this._initComplete();
|
||||
}
|
||||
|
||||
get mimeType() {
|
||||
@ -290,11 +282,6 @@ class PostUploadView extends events.EventTarget {
|
||||
uploadable.anonymous = true;
|
||||
}
|
||||
|
||||
uploadable.flags = [];
|
||||
if (rowNode.querySelector('.loop-video input:checked')) {
|
||||
uploadable.flags.push('loop');
|
||||
}
|
||||
|
||||
uploadable.tags = [];
|
||||
uploadable.relations = [];
|
||||
for (let [i, lookalike] of uploadable.lookalikes.entries()) {
|
||||
|
Reference in New Issue
Block a user