diff --git a/ppr-ui/src/components/DialogConfirm.vue b/ppr-ui/src/components/DialogConfirm.vue
new file mode 100644
index 0000000..4a54440
--- /dev/null
+++ b/ppr-ui/src/components/DialogConfirm.vue
@@ -0,0 +1,107 @@
+
+
+
+ {{ title }}
+ {{ message }}
+
+
+
+ {{ dialogOptions.ok }}
+
+
+ {{ dialogOptions.cancel }}
+
+
+
+
+
+
+
+
diff --git a/ppr-ui/src/financing-statement/FinancingStatement.vue b/ppr-ui/src/financing-statement/FinancingStatement.vue
index 837ded7..bcde62f 100644
--- a/ppr-ui/src/financing-statement/FinancingStatement.vue
+++ b/ppr-ui/src/financing-statement/FinancingStatement.vue
@@ -8,12 +8,8 @@
-
(false)
- // Create the set of text value pairs for the Type select
- interface SelectItem {
- text: string;
- value: string;
- }
- const fsTypes: SelectItem[] = []
- const fsTypeLabels: string[] = Object.values(FinancingStatementType)
- Object.keys(FinancingStatementType).forEach((key: string, index: number): void => {
- fsTypes.push({ text: fsTypeLabels[index], value: key })
- })
-
const life = ref(1)
const lifeRules = [
(value: string): (boolean | string) => {
@@ -198,7 +185,6 @@ export default createComponent({
}
return {
- fsTypes,
formIsValid,
life,
lifeRules,
diff --git a/ppr-ui/src/financing-statement/TypeComponent.vue b/ppr-ui/src/financing-statement/TypeComponent.vue
new file mode 100644
index 0000000..1e17f24
--- /dev/null
+++ b/ppr-ui/src/financing-statement/TypeComponent.vue
@@ -0,0 +1,110 @@
+
+
+
+
+
+
+
+
diff --git a/ppr-ui/tests/unit/financing-statement/FinancingStatement.spec.ts b/ppr-ui/tests/unit/financing-statement/FinancingStatement.spec.ts
index 635b601..11ffa5c 100644
--- a/ppr-ui/tests/unit/financing-statement/FinancingStatement.spec.ts
+++ b/ppr-ui/tests/unit/financing-statement/FinancingStatement.spec.ts
@@ -14,7 +14,20 @@ Vue.use(VueCompositionApi)
const vuetify = new Vuetify()
+/*
+* Create an app elements with a data-app attribute to prevent this warning:
+* console.warn node_modules/vuetify/dist/vuetify.js:40211
+* [Vuetify] Unable to locate target [data-app]
+*
+* This happens because the component hierachy includes a v-dialog which is, by default,
+* attached to the app element.
+*/
+const app = document.createElement('div')
+app.setAttribute('data-app', 'true')
+document.body.append(app)
+
describe('FinancingStatmentContainer.vue', (): void => {
+
describe(':props', (): void => {
it(':editing - false contains no inputs', (): void => {
const properties = ref({ editing: false, value: new FinancingStatementModel() })