Skip to content

Commit

Permalink
replace purged with "permanently deleted"
Browse files Browse the repository at this point in the history
Co-authored-by: David López <[email protected]>
  • Loading branch information
ahmedhamidawan and davelopez committed Jul 25, 2024
1 parent 3a69575 commit f5cc111
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const currentUserOwnsHistory = computed(() => {
<div v-if="hasMessages" class="mx-3 mt-2" data-description="history messages">
<BAlert v-if="history.purged" :show="history.purged" variant="warning">
<FontAwesomeIcon :icon="faBurn" fixed-width />
{{ localize("History has been purged") }}
{{ localize("History has been permanently deleted") }}
</BAlert>
<BAlert v-else-if="history.deleted" :show="history.deleted" variant="warning">
<FontAwesomeIcon :icon="faTrash" fixed-width />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ function userTitle(title: string) {
:title="localize(isDeletedNotPurged ? 'Permanently Delete History' : 'Delete History')"
@click="showDeleteModal = !showDeleteModal">
<FontAwesomeIcon fixed-width :icon="isDeletedNotPurged ? faBurn : faTrash" class="mr-1" />
<span v-if="isDeletedNotPurged" v-localize>Purge this History</span>
<span v-if="isDeletedNotPurged" v-localize>Permanently Delete History</span>
<span v-else v-localize>Delete this History</span>
</BDropdownItem>

Expand Down Expand Up @@ -318,9 +318,9 @@ function userTitle(title: string) {
@ok="historyStore.secureHistory(history)">
<h4>
History:
<b
><i>{{ history.name }}</i></b
>
<b>
<i>{{ history.name }}</i>
</b>
</h4>
<p v-localize>
This will make all the data in this history private (excluding library datasets), and will set
Expand All @@ -331,7 +331,7 @@ function userTitle(title: string) {

<BModal
v-model="showDeleteModal"
:title="isDeletedNotPurged ? 'Purge History?' : 'Delete History?'"
:title="isDeletedNotPurged ? 'Permanently Delete History?' : 'Delete History?'"
title-tag="h2"
@ok="onDelete"
@show="purgeHistory = isDeletedNotPurged">
Expand Down
6 changes: 5 additions & 1 deletion client/src/components/History/HistoryScrollList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,11 @@ async function loadMore(noScroll = false) {
</div>
<TextSummary v-else component="h4" :description="history.name" one-line-summary />
<div class="d-flex align-items-center flex-gapx-1">
<BBadge v-if="history.purged" pill class="alert-warning" title="Purged">
<BBadge
v-if="history.purged"
pill
class="alert-warning"
title="Permanently deleted">
<FontAwesomeIcon :icon="faBurn" fixed-width />
</BBadge>
<BBadge v-else-if="history.deleted" pill class="alert-danger" title="Deleted">
Expand Down

0 comments on commit f5cc111

Please sign in to comment.