|
|
@@ -11,6 +11,8 @@ |
|
|
|
<home :user="user" v-else-if="active == 1" /> |
|
|
|
<new-estimate :user="user" :fees="fees" v-else-if="active == 2" /> |
|
|
|
<estimates :user="user" :fees="fees" v-else-if="active == 3" /> |
|
|
|
<settings :user="user" v-else-if="active == 4" /> |
|
|
|
<sign-out :user="user" v-else-if="active == 5" /> |
|
|
|
|
|
|
|
</div> |
|
|
|
</template> |
|
|
@@ -21,6 +23,8 @@ import Spinner from "./spinner.vue" |
|
|
|
import Home from "./home.vue" |
|
|
|
import NewEstimate from "./new.vue" |
|
|
|
import Estimates from "./estimates.vue" |
|
|
|
import Settings from "./settings.vue" |
|
|
|
import SignOut from "./sign-out.vue" |
|
|
|
|
|
|
|
const user = { |
|
|
|
firstName: "test", |
|
|
@@ -62,7 +66,15 @@ function active() { |
|
|
|
} |
|
|
|
|
|
|
|
export default { |
|
|
|
components: { SideBar, Spinner, Home, NewEstimate, Estimates }, |
|
|
|
components: { |
|
|
|
SideBar, |
|
|
|
Spinner, |
|
|
|
Home, |
|
|
|
NewEstimate, |
|
|
|
Estimates, |
|
|
|
Settings, |
|
|
|
SignOut |
|
|
|
}, |
|
|
|
computed: { active }, |
|
|
|
data() { |
|
|
|
return { |
|
|
|