Skip to content

Commit

Permalink
admin: Make content publis h status can be updated when booth is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
somnisomni committed Dec 9, 2024
1 parent 4bc244d commit 727919a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions projects/Admin/src/components/dashboard/BoothStatusPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,21 @@

<!-- When status is PREPARE: Content publish setting -->
<VExpandTransition>
<VLayout v-if="currentBoothStatus === BoothStatus.PREPARE" class="mt-6 text-center flex-column">
<VLayout v-if="currentBoothStatus === BoothStatus.PREPARE || currentBoothStatus === BoothStatus.CLOSE"
class="mt-6 text-center flex-column">
<div class="text-grey-darken-2">부스 정보 공개 상태 변경: </div>
<VLayout class="flex-row justify-stretch mt-1">
<VBtn :variant="currentBoothStatusContentPublished ? 'flat' : 'outlined'"
:disabled="currentBoothStatusContentPublished || contentPublishStatusUpdateProgress"
:loading="contentPublishStatusUpdateProgress"
color="green" class="mr-1 flex-grow-1"
:color="currentBoothStatus === BoothStatus.CLOSE ? 'red' : 'green'"
class="mr-1 flex-grow-1"
@click.stop="updateContentPublishStatus(true)">공개</VBtn>
<VBtn :variant="!currentBoothStatusContentPublished ? 'flat' : 'outlined'"
:disabled="!currentBoothStatusContentPublished || contentPublishStatusUpdateProgress"
:loading="contentPublishStatusUpdateProgress"
color="grey" class="ml-1 flex-grow-1"
color="grey"
class="ml-1 flex-grow-1"
@click.stop="updateContentPublishStatus(false)">비공개</VBtn>
</VLayout>
</VLayout>
Expand Down
2 changes: 1 addition & 1 deletion projects/Admin/src/pages/AdminLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export default class AdminLayout extends Vue {
}
get currentBoothIsNotPublished(): boolean {
return this.currentBooth.status.status === BoothStatus.PREPARE && !this.currentBooth.status.contentPublished;
return !this.currentBooth.status.contentPublished;
}
get boothPublicPageHref(): string {
Expand Down

0 comments on commit 727919a

Please sign in to comment.