[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>
|
<label for="type" class="required"><T>sources.submit.type</T></label>
|
||||||
<select id="type" class="form-control" v-model="form.type" required>
|
<select id="type" class="form-control" v-model="form.type" required>
|
||||||
<option value=""></option>
|
<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>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -112,6 +112,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {pronounLibrary} from "../src/data";
|
import {pronounLibrary} from "../src/data";
|
||||||
|
import {Source} from "@/src/classes";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
|
@ -131,6 +132,8 @@
|
||||||
base: null,
|
base: null,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
sourceTypes: Source.TYPES,
|
||||||
|
|
||||||
submitting: false,
|
submitting: false,
|
||||||
afterSubmit: false,
|
afterSubmit: false,
|
||||||
|
|
||||||
|
|
|
@ -136,6 +136,7 @@ export class Source {
|
||||||
Series: 'tv',
|
Series: 'tv',
|
||||||
Song: 'music',
|
Song: 'music',
|
||||||
Poetry: 'scroll',
|
Poetry: 'scroll',
|
||||||
|
Comics: 'file-image',
|
||||||
Game: 'gamepad-alt',
|
Game: 'gamepad-alt',
|
||||||
Other: 'comment-alt-lines',
|
Other: 'comment-alt-lines',
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue