2020-10-21 17:54:45 +00:00
|
|
|
<template>
|
|
|
|
<Page>
|
2020-10-24 18:02:35 +00:00
|
|
|
<StackLayout class="dialogContainer" :class="isLightMode">
|
2020-10-21 17:54:45 +00:00
|
|
|
<Label class="dialogTitle orkm" :text="title" />
|
2020-10-24 18:02:35 +00:00
|
|
|
<StackLayout class="dialogInputField">
|
|
|
|
<TextField
|
|
|
|
:hint="hint"
|
|
|
|
v-model="category"
|
|
|
|
autocapitalizationType="words"
|
|
|
|
/>
|
|
|
|
</StackLayout>
|
2020-10-21 17:54:45 +00:00
|
|
|
<StackLayout orientation="horizontal" horizontalAlignment="right">
|
|
|
|
<Label class="action orkm" text="CANCEL" @tap="$modal.close(false)" />
|
|
|
|
<Label
|
|
|
|
class="action orkm"
|
|
|
|
:text="action"
|
|
|
|
@tap="$modal.close(category)"
|
|
|
|
/>
|
|
|
|
</StackLayout>
|
|
|
|
</StackLayout>
|
|
|
|
</Page>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2020-10-24 18:02:35 +00:00
|
|
|
import { Application } from "@nativescript/core"
|
2020-10-21 17:54:45 +00:00
|
|
|
export default {
|
|
|
|
props: ["title", "hint", "action"],
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
category: null,
|
|
|
|
}
|
|
|
|
},
|
2020-10-24 18:02:35 +00:00
|
|
|
computed: {
|
|
|
|
isLightMode() {
|
|
|
|
return Application.systemAppearance()
|
|
|
|
},
|
2020-10-22 18:36:50 +00:00
|
|
|
},
|
2020-10-21 17:54:45 +00:00
|
|
|
}
|
|
|
|
</script>
|