Add delete button for Measure (UI only, not hooked up).

This commit is contained in:
Jonathan Bernard 2020-03-13 23:08:21 -05:00
parent ff17d9bf7a
commit 53a11b9e57
5 changed files with 11 additions and 2 deletions

View File

@ -15,7 +15,6 @@
</tr> </tr>
</tbody> </tbody>
</v-table> </v-table>
<SimpleEntry :measure=measure v-model=
</div> </div>
</template> </template>
<script lang="ts" src="./simple-details.ts"></script> <script lang="ts" src="./simple-details.ts"></script>

View File

@ -1,5 +1,6 @@
@import '~@/styles/vars'; @import '~@/styles/vars';
button,
.btn, .btn,
.btn-action { .btn-action {
border: 0; border: 0;

View File

@ -5,6 +5,7 @@
<h1>{{measure.name}}</h1> <h1>{{measure.name}}</h1>
<h2>{{measure.description}}</h2> <h2>{{measure.description}}</h2>
</div> </div>
<button><fa-icon icon=trash></fa-icon></button>
<router-link :to="'/new/measurement/' + measure.slug" class=btn-action>Add Measurement</router-link> <router-link :to="'/new/measurement/' + measure.slug" class=btn-action>Add Measurement</router-link>
</div> </div>
<MeasureDetails :measure=measure :measurements=measurements /> <MeasureDetails :measure=measure :measurements=measurements />

View File

@ -1,3 +1,7 @@
@import '~@/styles/vars'; @import '~@/styles/vars';
.header-action button {
margin-left: auto;
margin-right: 2rem;
background-color: none;
}

View File

@ -1,8 +1,12 @@
import { Component, Prop, Vue } from 'vue-property-decorator'; import { Component, Prop, Vue } from 'vue-property-decorator';
import { library } from '@fortawesome/fontawesome-svg-core';
import { faTrash } from '@fortawesome/free-solid-svg-icons';
import { Measure as MeasureModel, MeasureConfig } from '@/models'; import { Measure as MeasureModel, MeasureConfig } from '@/models';
import { measureStore, measurementStore } from '@/store'; import { measureStore, measurementStore } from '@/store';
import MeasureDetails from '@/components/measure-details/MeasureDetails.vue'; import MeasureDetails from '@/components/measure-details/MeasureDetails.vue';
library.add(faTrash);
@Component({ @Component({
components: { components: {
MeasureDetails MeasureDetails