-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GBICSGO-2277: adds trashcan button to backup dialog (#416)
* GBICSGO-2277: adds trashcan button to backup dialog * GBICSGO-2277: fixes missing method for stub * GBICSGO-2277: fmts pkg/http/rest/api_test.go * GBICSGO-2277: fixes description for /trashcans/{backupId}/clean_up API * GBICSGO-2277: adds confirm dialog * GBICSGO-2277: makes trashcan deletion async * GBICSGO-2277: implements missing method for repository mock * GBICSGO-2277: fixes test TestCleanupTrashcansService_Noop * GBICSGO-2277: fixes MarkTrashcanCleanupStatusWithError and updates err msg * GBICSGO-2277: adds timestamp for schedule trashcan cleanup * GBICSGO-2277: fixes column name for trashcan_cleanup_last_scheduled_timestamp * GBICSGO-2277: fixes test for TrashcanCleanup * GBICSGO-2277: fix timestamp type for trashcan_cleanup_last_scheduled_timestamp * GBICSGO-2277: adds status for cleanup trashcan is in progress * GBICSGO-2277: adds guard for empty prefix for trashcan cleanup * GBICSGO-2277: fixes sql migration * GBICSGO-2277: adds link to cloud storage bucket * GBICSGO-2277: fmts func declaration * GBICSGO-2277: fixes inner text for sink bucket a-tag * GBICSGO-2277: opens bucket sink in new tab
- Loading branch information
1 parent
d3159f7
commit 1b559f7
Showing
56 changed files
with
913 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
<script setup lang="ts"> | ||
import {PropType} from "vue"; | ||
const emits = defineEmits(['confirm', 'cancel']) | ||
const model = defineModel({default: false, required: true}) | ||
interface Options { | ||
title?: string | ||
message?: string | ||
color?: string | ||
width?: string | ||
confirmButtonText?: string | ||
confirmButtonColor?: string | ||
cancelButtonText?: string | ||
cancelButtonColor?: string | ||
} | ||
defineProps({ | ||
title: { | ||
type: String, | ||
default: '', | ||
}, | ||
message: { | ||
type: String, | ||
default: '', | ||
}, | ||
color: { | ||
type: String, | ||
default: 'primary', | ||
}, | ||
width: { | ||
type: String, | ||
default: '500', | ||
}, | ||
options: { | ||
type: Object as PropType<Options>, | ||
default: () => ({ | ||
title: 'Are you sure?', | ||
message: '', | ||
color: 'primary', | ||
width: '500', | ||
confirmButtonText: 'OK', | ||
confirmButtonColor: 'primary', | ||
cancelButtonText: 'Cancel', | ||
cancelButtonColor: 'secondary', | ||
}), | ||
} | ||
}) | ||
const cancel = () => { | ||
emits('cancel') | ||
} | ||
const confirm = () => { | ||
emits('confirm') | ||
} | ||
</script> | ||
|
||
<template> | ||
<v-dialog | ||
v-model="model" | ||
:width="width" | ||
@keydown.esc="cancel" | ||
> | ||
<v-card> | ||
<v-toolbar dark :color="options.color" dense flat> | ||
<v-toolbar-title class="text-body-2 font-weight-bold grey--text"> | ||
{{ options.title }} | ||
</v-toolbar-title> | ||
</v-toolbar> | ||
<v-card-text | ||
v-show="!!options.message" | ||
class="pa-4 black--text" | ||
v-html="options.message" | ||
></v-card-text> | ||
<v-card-actions class="pt-3"> | ||
<v-spacer></v-spacer> | ||
<v-btn | ||
class="body-2 font-weight-bold" | ||
@click.native="cancel" | ||
:text="options.cancelButtonText" | ||
/> | ||
<v-btn | ||
color="red" | ||
class="body-2 font-weight-bold" | ||
outlined | ||
@click.native="confirm" | ||
:text="options.confirmButtonText" | ||
/> | ||
</v-card-actions> | ||
</v-card> | ||
</v-dialog> | ||
</template> | ||
|
||
<style scoped> | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.