[sources] add "Comics" type
This commit is contained in:
parent
56e8580a64
commit
ef3b2a817b
|
@ -21,7 +21,7 @@
|
|||
<label for="type" class="required"><T>sources.submit.type</T></label>
|
||||
<select id="type" class="form-control" v-model="form.type" required>
|
||||
<option value=""></option>
|
||||
<option v-for="t in ['Book', 'Article', 'Movie', 'Series', 'Song', 'Poetry', 'Game', 'Other']" :value="t">{{$t('sources.type.' + t)}}</option>
|
||||
<option v-for="t in Object.keys(sourceTypes)" v-if="t !== ''" :value="t">{{$t('sources.type.' + t)}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
@ -112,6 +112,7 @@
|
|||
|
||||
<script>
|
||||
import {pronounLibrary} from "../src/data";
|
||||
import {Source} from "@/src/classes";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
|
@ -131,6 +132,8 @@
|
|||
base: null,
|
||||
},
|
||||
|
||||
sourceTypes: Source.TYPES,
|
||||
|
||||
submitting: false,
|
||||
afterSubmit: false,
|
||||
|
||||
|
|
|
@ -136,6 +136,7 @@ export class Source {
|
|||
Series: 'tv',
|
||||
Song: 'music',
|
||||
Poetry: 'scroll',
|
||||
Comics: 'file-image',
|
||||
Game: 'gamepad-alt',
|
||||
Other: 'comment-alt-lines',
|
||||
}
|
||||
|
|
Reference in New Issue