Upgraded dependencies, bumped to Node 24.
This commit is contained in:
@@ -1,3 +1,30 @@
|
||||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
|
||||
import Dialog from '#/components/dialog/dialog.vue';
|
||||
|
||||
import { post } from '#/src/api.js';
|
||||
|
||||
const emit = defineEmits(['created', 'close']);
|
||||
|
||||
const stashName = ref(null);
|
||||
const stashNameInput = ref(null);
|
||||
|
||||
async function createStash() {
|
||||
const newStash = await post('/stashes', {
|
||||
name: stashName.value,
|
||||
public: false,
|
||||
}, {
|
||||
successFeedback: `Stash '${stashName.value}' created`,
|
||||
errorFeedback: `Failed to create stash '${stashName.value}'`,
|
||||
appendErrorMessage: true,
|
||||
});
|
||||
|
||||
emit('created', newStash);
|
||||
stashName.value = null;
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Dialog
|
||||
title="New stash"
|
||||
@@ -23,33 +50,6 @@
|
||||
</Dialog>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
|
||||
import { post } from '#/src/api.js';
|
||||
|
||||
import Dialog from '#/components/dialog/dialog.vue';
|
||||
|
||||
const emit = defineEmits(['created', 'close']);
|
||||
|
||||
const stashName = ref(null);
|
||||
const stashNameInput = ref(null);
|
||||
|
||||
async function createStash() {
|
||||
const newStash = await post('/stashes', {
|
||||
name: stashName.value,
|
||||
public: false,
|
||||
}, {
|
||||
successFeedback: `Stash '${stashName.value}' created`,
|
||||
errorFeedback: `Failed to create stash '${stashName.value}'`,
|
||||
appendErrorMessage: true,
|
||||
});
|
||||
|
||||
emit('created', newStash);
|
||||
stashName.value = null;
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.dialog-body {
|
||||
padding: 1rem;
|
||||
|
||||
Reference in New Issue
Block a user