subdir for "bulma" components
This commit is contained in:
parent
5c38c2fcd8
commit
ce344e5043
5 changed files with 31 additions and 16 deletions
|
@ -59,9 +59,9 @@ div.panel-block.is-flex button {
|
||||||
import { Door, DoorsSaved } from "@/lib/door";
|
import { Door, DoorsSaved } from "@/lib/door";
|
||||||
import { Options, Vue } from "vue-class-component";
|
import { Options, Vue } from "vue-class-component";
|
||||||
|
|
||||||
import BulmaBreadcrumbs, { Step } from "./BulmaBreadcrumbs.vue";
|
import BulmaBreadcrumbs, { Step } from "./bulma/Breadcrumbs.vue";
|
||||||
import BulmaButton from "./BulmaButton.vue";
|
import BulmaButton from "./bulma/Button.vue";
|
||||||
import BulmaDrawer from "./BulmaDrawer.vue";
|
import BulmaDrawer from "./bulma/Drawer.vue";
|
||||||
import Calendar from "./Calendar.vue";
|
import Calendar from "./Calendar.vue";
|
||||||
import DoorChooser from "./calendar/editor/DoorChooser.vue";
|
import DoorChooser from "./calendar/editor/DoorChooser.vue";
|
||||||
import DoorPlacer from "./calendar/editor/DoorPlacer.vue";
|
import DoorPlacer from "./calendar/editor/DoorPlacer.vue";
|
||||||
|
|
|
@ -27,27 +27,42 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label class="label">Password</label>
|
<label class="label">Passwort</label>
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<input class="input" type="password" v-model="password" />
|
<input class="input" type="password" v-model="password" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
</form>
|
||||||
|
|
||||||
<footer class="modal-card-foot">
|
<footer class="modal-card-foot">
|
||||||
<button class="button is-success" @click.left="submit">Login</button>
|
<BulmaButton
|
||||||
<button class="button is-danger" @click.left="set_active(false)">
|
class="button is-success"
|
||||||
Cancel
|
@click.left="submit"
|
||||||
</button>
|
icon="fa-solid fa-unlock"
|
||||||
|
text="Login"
|
||||||
|
/>
|
||||||
|
<BulmaButton
|
||||||
|
class="button is-danger"
|
||||||
|
@click.left="set_active(false)"
|
||||||
|
icon="fa-solid fa-circle-xmark"
|
||||||
|
text="Abbrechen"
|
||||||
|
/>
|
||||||
</footer>
|
</footer>
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Vue } from "vue-class-component";
|
import { Options, Vue } from "vue-class-component";
|
||||||
|
|
||||||
|
import BulmaButton from "./bulma/Button.vue";
|
||||||
|
|
||||||
|
@Options({
|
||||||
|
components: {
|
||||||
|
BulmaButton,
|
||||||
|
},
|
||||||
|
})
|
||||||
export default class extends Vue {
|
export default class extends Vue {
|
||||||
public active = false;
|
public active = false;
|
||||||
public username = "";
|
public username = "";
|
||||||
|
@ -66,10 +81,10 @@ export default class extends Vue {
|
||||||
public set_active(state: boolean) {
|
public set_active(state: boolean) {
|
||||||
this.active = state;
|
this.active = state;
|
||||||
|
|
||||||
|
if (this.active) {
|
||||||
this.username = "";
|
this.username = "";
|
||||||
this.password = "";
|
this.password = "";
|
||||||
|
|
||||||
if (this.active) {
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
if (this.$refs.username_input instanceof HTMLInputElement) {
|
if (this.$refs.username_input instanceof HTMLInputElement) {
|
||||||
this.$refs.username_input?.focus();
|
this.$refs.username_input?.focus();
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<span v-if="icon !== undefined" class="icon">
|
<span v-if="icon !== undefined" class="icon">
|
||||||
<font-awesome-icon :icon="icon" />
|
<font-awesome-icon :icon="icon" />
|
||||||
</span>
|
</span>
|
||||||
<span v-if="text != ''">{{ text }}</span>
|
<span v-if="text !== ''">{{ text }}</span>
|
||||||
</button>
|
</button>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in a new issue