diff --git a/components/app.vue b/components/app.vue
index 1eb260d..95c268c 100644
--- a/components/app.vue
+++ b/components/app.vue
@@ -2,7 +2,10 @@
-
+
@@ -24,6 +27,7 @@ v-else-if="active == 3"
:token="token"
@addFeeTemp="(f) => fees.push(f)"
@removeFeeTemp="(fee) => fees = fees.filter(f => f.id != fee.id)"
+@preview="previewEstimate"
/>
+
+
+
+
@@ -48,6 +60,7 @@ import Spinner from "./spinner.vue"
import Home from "./home.vue"
import NewEstimate from "./new/new.vue"
import Estimates from "./estimates.vue"
+import EstimateTest from "./estimate-test.vue"
import Settings from "./settings.vue"
import SignOut from "./sign-out.vue"
import Login from "./login.vue"
@@ -191,6 +204,8 @@ function active() {
return 5
} else if (/^#login\/?/.exec(this.hash)) {
return 6
+ } else if (/^#estimate\/?/.exec(this.hash)) {
+ return 7
} else {
return 0
}
@@ -218,12 +233,18 @@ function start() {
}
+function previewEstimate(estimate) {
+ this.preview = estimate
+ window.location.hash = 'estimate'
+}
+
export default {
components: {
SideBar,
Spinner,
Home,
NewEstimate,
+ EstimateTest,
Estimates,
Settings,
SignOut,
@@ -240,6 +261,7 @@ export default {
getAvatar,
updateLetterhead,
getLetterhead,
+ previewEstimate,
},
data() {
return {
@@ -249,6 +271,7 @@ export default {
fees: [],
loadingError: "",
token: '',
+ preview: null,
}
},
created() {
diff --git a/components/estimate-test.vue b/components/estimate-test.vue
new file mode 100644
index 0000000..455f344
--- /dev/null
+++ b/components/estimate-test.vue
@@ -0,0 +1,21 @@
+
+{{estimate}}
+
+
+
+
+
+
+
+
diff --git a/components/estimates.vue b/components/estimates.vue
index 8774b6c..201114f 100644
--- a/components/estimates.vue
+++ b/components/estimates.vue
@@ -27,8 +27,6 @@
@save="newFee"
/>
-
-
-
+