-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
18532 - AM Button Implementation (#748)
* For PR - AM Button Implementation * Added amalgamate now error * Alphabetized exports * Alphabetized exports * Alphabetized Actions * Resolved UI logic issue * Fixed UI logic, rmv debug comments and refactored * used emit to reuse code. * Updated for PR * Updated getter declaration for isAmalgamation * Fixed the test error * Refactored code to reduce redundancy * Removed duplicate functions & unused getter.
- Loading branch information
1 parent
4ca645b
commit b08fc6c
Showing
15 changed files
with
257 additions
and
32 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,96 @@ | ||
<template> | ||
<v-dialog | ||
v-model="dialog" | ||
width="45rem" | ||
persistent | ||
:attach="attach" | ||
> | ||
<v-card> | ||
<v-card-title id="dialog-title"> | ||
Unable to Amalgamate Now | ||
</v-card-title> | ||
|
||
<v-card-text id="dialog-text"> | ||
<!-- display message --> | ||
<div class="general-error"> | ||
<p>Unable to amalgamate now. Please cancel or try again.</p> | ||
</div> | ||
</v-card-text> | ||
|
||
<v-divider class="my-0" /> | ||
|
||
<v-card-actions> | ||
<v-spacer /> | ||
<v-btn | ||
id="dialog-cancel-button" | ||
class="dialog-close" | ||
text | ||
@click="close()" | ||
> | ||
Cancel | ||
</v-btn> | ||
<v-btn | ||
id="dialog-try-again-button" | ||
class="dialog-close" | ||
text | ||
@click="tryAgain()" | ||
> | ||
Try Again | ||
</v-btn> | ||
</v-card-actions> | ||
</v-card> | ||
</v-dialog> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { Component, Vue, Prop, Emit } from 'vue-property-decorator' | ||
@Component({}) | ||
export default class AmalgamateNowErrorDialog extends Vue { | ||
/** Prop to display the dialog. */ | ||
@Prop() readonly dialog: boolean | ||
/** Prop to provide attachment selector. */ | ||
@Prop() readonly attach: string | ||
/** Pass click event to parent. */ | ||
@Emit() close () { } | ||
/** Try again button clicked. Refresh the page. */ | ||
tryAgain () { | ||
window.location.reload() | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
@import "@/assets/styles/theme.scss"; | ||
.v-dialog { | ||
margin: 2rem; | ||
.v-card { | ||
padding: 0; | ||
.v-card__title { | ||
padding: 1.25rem 1.5rem; | ||
color: $BCgovFontColorInverted; | ||
background: $BCgovBlue5; | ||
font-size: $px-18; | ||
font-weight: bold; | ||
margin: 0; | ||
} | ||
.v-card__text { | ||
padding: 1.5rem !important; | ||
font-weight: 300; | ||
color: $gray7 !important; | ||
font-size: $px-16; | ||
} | ||
.v-card__actions { | ||
padding: 1rem; | ||
} | ||
} | ||
} | ||
</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
Oops, something went wrong.