Fix things
This commit is contained in:
@@ -1,14 +1,14 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app">
|
<div class="app">
|
||||||
<div class="fluid-container">
|
<div class="fluid-container">
|
||||||
<div class="d-flex justify-content-between">
|
<div class="d-flex justify-content-between border-bottom">
|
||||||
<h1 class="py-2 pr-2">Pinboard Groupings</h1>
|
<h1 class="py-2 pr-2">Pinboard Groupings</h1>
|
||||||
|
|
||||||
<div class="tags-form py-2 pl-2">
|
<div class="tags-form py-2 pl-2">
|
||||||
<form @submit.prevent="saveNewGrouping" class="form-inline" v-if="apiKey">
|
<form @submit.prevent="saveNewGrouping" class="form-inline" v-if="apiKey">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="sr-only" for="tags">Tags</label>
|
<label class="sr-only" for="tags">Tags</label>
|
||||||
<input type="text" class="form-control" id="tags"
|
<input type="text" class="form-control p-0 h-auto" id="tags"
|
||||||
v-model="newGrouping.tags"
|
v-model="newGrouping.tags"
|
||||||
placeholder="new grouping tags">
|
placeholder="new grouping tags">
|
||||||
</div>
|
</div>
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
<form @submit.prevent="saveApiKey" class="form-inline">
|
<form @submit.prevent="saveApiKey" class="form-inline">
|
||||||
<div class="form-group" v-if="!apiKey">
|
<div class="form-group" v-if="!apiKey">
|
||||||
<label class="sr-only" for="apiKey">Pinboard API Key</label>
|
<label class="sr-only" for="apiKey">Pinboard API Key</label>
|
||||||
<input type="text" class="form-control" id="apiKey"
|
<input type="text" class="form-control p-0 h-auto" id="apiKey"
|
||||||
v-model="form.apiKey"
|
v-model="form.apiKey"
|
||||||
placeholder="Enter Pinboard API key">
|
placeholder="Enter Pinboard API key">
|
||||||
</div>
|
</div>
|
||||||
@@ -81,7 +81,7 @@ export default {
|
|||||||
apiKey: null
|
apiKey: null
|
||||||
},
|
},
|
||||||
newGrouping: {
|
newGrouping: {
|
||||||
tags: []
|
tags: ""
|
||||||
},
|
},
|
||||||
error: null
|
error: null
|
||||||
}
|
}
|
||||||
@@ -121,6 +121,10 @@ export default {
|
|||||||
return promise;
|
return promise;
|
||||||
},
|
},
|
||||||
saveNewGrouping(event) {
|
saveNewGrouping(event) {
|
||||||
|
if (this.newGrouping.tags === "") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.groupings.push({
|
this.groupings.push({
|
||||||
tags: this.newGrouping.tags,
|
tags: this.newGrouping.tags,
|
||||||
pins: [],
|
pins: [],
|
||||||
|
|||||||
Reference in New Issue
Block a user