beginning implement add station modal functionality
This commit is contained in:
parent
318605446b
commit
b9b6b39bb8
@ -103,7 +103,6 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.onRoute()
|
this.onRoute()
|
||||||
this.scroll()
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions([
|
...mapActions([
|
||||||
|
@ -26,8 +26,8 @@
|
|||||||
:station-data="stations" />
|
:station-data="stations" />
|
||||||
<AppContent>
|
<AppContent>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<Breadcrumbs @dropped="dropped">
|
<Breadcrumbs>
|
||||||
<Breadcrumb title="Home" href="#/" @dropped="droppedOnCrumb" />
|
<Breadcrumb title="Home" href="#/" />
|
||||||
<Breadcrumb title="Favorites" href="#/favorites" />
|
<Breadcrumb title="Favorites" href="#/favorites" />
|
||||||
</Breadcrumbs>
|
</Breadcrumbs>
|
||||||
<Actions>
|
<Actions>
|
||||||
@ -66,21 +66,33 @@
|
|||||||
<Modal v-if="modal" @close="closeModal">
|
<Modal v-if="modal" @close="closeModal">
|
||||||
<div class="modalContent">
|
<div class="modalContent">
|
||||||
<h2 class="oc-dialog-title">
|
<h2 class="oc-dialog-title">
|
||||||
Add custom station
|
{{ t('radio', 'Add custom station') }}
|
||||||
</h2>
|
</h2>
|
||||||
<form>
|
<form>
|
||||||
<label for="stationName">Name:</label>
|
<label for="stationName">{{ t('radio', 'Name') }}:</label>
|
||||||
<input id="stationName" type="text">
|
<input
|
||||||
<label for="streamUrl">Stream url:</label>
|
id="stationName"
|
||||||
<input id="streamUrl" type="text">
|
v-model="station.name"
|
||||||
<label for="faviconUrl">Favicon url:</label>
|
type="text"
|
||||||
<input id="faviconUrl" type="text">
|
required>
|
||||||
|
<label for="streamUrl">{{ t('radio', 'Stream url') }}:</label>
|
||||||
|
<input
|
||||||
|
id="streamUrl"
|
||||||
|
v-model="station.streamUrl"
|
||||||
|
type="url"
|
||||||
|
required>
|
||||||
|
<label for="faviconUrl">{{ t('radio', 'Favicon url') }}:</label>
|
||||||
|
<input
|
||||||
|
id="faviconUrl"
|
||||||
|
v-model="station.faviconUrl"
|
||||||
|
type="url"
|
||||||
|
required>
|
||||||
</form>
|
</form>
|
||||||
<div class="formControls">
|
<div class="formControls">
|
||||||
<!-- FIXME: Use nextcloud-vue button component -->
|
<!-- FIXME: Use nextcloud-vue button component -->
|
||||||
<button class="icon-add-white primary button new-button"
|
<button class="icon-add-white primary button new-button"
|
||||||
@click="addCustomStation()">
|
@click="addCustomStation()">
|
||||||
Add station
|
{{ t('radio', 'Add station') }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -132,6 +144,7 @@ export default {
|
|||||||
sidebarStation: {},
|
sidebarStation: {},
|
||||||
tableData: [],
|
tableData: [],
|
||||||
modal: true,
|
modal: true,
|
||||||
|
station: {},
|
||||||
}),
|
}),
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters([
|
...mapGetters([
|
||||||
@ -156,7 +169,6 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.onRoute()
|
this.onRoute()
|
||||||
this.scroll()
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions([
|
...mapActions([
|
||||||
@ -230,7 +242,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
addCustomStation() {
|
addCustomStation() {
|
||||||
console.log('Add custom station')
|
console.log('Add custom station', this.station.name)
|
||||||
// this.addFavorite(station)
|
// this.addFavorite(station)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user