@@ -251,8 +233,6 @@ Raymer * @version 1.0.0 */
-
-
@@ -260,7 +240,6 @@ Raymer * @version 1.0.0 */
import { UAParser } from "ua-parser-js";
import { Component, Vue } from "vue-facing-decorator";
import { Router } from "vue-router";
-import { Capacitor } from "@capacitor/core";
//import App from "../App.vue";
import EntityIcon from "../components/EntityIcon.vue";
@@ -271,10 +250,9 @@ import InfiniteScroll from "../components/InfiniteScroll.vue";
import OnboardingDialog from "../components/OnboardingDialog.vue";
import QuickNav from "../components/QuickNav.vue";
import TopMessage from "../components/TopMessage.vue";
-import UserNameDialog from "../components/UserNameDialog.vue";
-import ChoiceButtonDialog from "../components/ChoiceButtonDialog.vue";
import ImageViewer from "../components/ImageViewer.vue";
import ActivityListItem from "../components/ActivityListItem.vue";
+import RegistrationNotice from "../components/RegistrationNotice.vue";
import {
AppString,
NotificationIface,
@@ -382,12 +360,11 @@ interface FeedError {
GiftedPrompts,
InfiniteScroll,
OnboardingDialog,
- ChoiceButtonDialog,
QuickNav,
TopMessage,
- UserNameDialog,
ImageViewer,
ActivityListItem,
+ RegistrationNotice,
},
mixins: [PlatformServiceMixin],
})
@@ -1643,67 +1620,6 @@ export default class HomeView extends Vue {
return known ? "text-slate-500" : "text-slate-100";
}
- /**
- * Shows name input dialog if needed
- *
- * @public
- * @callGraph
- * Called by: Template
- * Calls:
- * - UserNameDialog.open()
- * - promptForShareMethod()
- *
- * @chain
- * Template -> showNameThenIdDialog() -> promptForShareMethod()
- *
- * @requires
- * - this.$refs.userNameDialog
- * - this.givenName
- */
- showNameThenIdDialog() {
- if (!this.givenName) {
- (this.$refs.userNameDialog as UserNameDialog).open(() => {
- this.promptForShareMethod();
- });
- } else {
- this.promptForShareMethod();
- }
- }
-
- /**
- * Shows dialog for sharing method selection
- *
- * @internal
- * @callGraph
- * Called by: showNameThenIdDialog()
- * Calls: ChoiceButtonDialog.open()
- *
- * @chain
- * Template -> showNameThenIdDialog() -> promptForShareMethod()
- *
- * @requires
- * - this.$refs.choiceButtonDialog
- * - this.$router
- */
- promptForShareMethod() {
- (this.$refs.choiceButtonDialog as ChoiceButtonDialog).open({
- title: "How can you share your info?",
- text: "",
- option1Text: "We are in a meeting together",
- option2Text: "We are nearby with cameras",
- option3Text: "We will share some other way",
- onOption1: () => {
- this.$router.push({ name: "onboard-meeting-list" });
- },
- onOption2: () => {
- this.handleQRCodeClick();
- },
- onOption3: () => {
- this.$router.push({ name: "share-my-contact-info" });
- },
- });
- }
-
/**
* Opens image viewer dialog
*
@@ -1716,14 +1632,6 @@ export default class HomeView extends Vue {
this.isImageViewerOpen = true;
}
- private handleQRCodeClick() {
- if (Capacitor.isNativePlatform()) {
- this.$router.push({ name: "contact-qr-scan-full" });
- } else {
- this.$router.push({ name: "contact-qr" });
- }
- }
-
openPersonDialog(
giver?: GiverReceiverInputInfo | "Unnamed",
prompt?: string,