diff --git a/README.md b/README.md index dace396d..fef785c1 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Quick start: ```bash npm install -npm run build:web:serve -- --test +npm run build:web:dev ``` To be able to take action on the platform: go to [the test page](http://localhost:8080/test) and click "Become User 0". diff --git a/src/components/MembersList.vue b/src/components/MembersList.vue index 318f7efa..c00998a9 100644 --- a/src/components/MembersList.vue +++ b/src/components/MembersList.vue @@ -251,6 +251,8 @@ import { PlatformServiceMixin } from "@/utils/PlatformServiceMixin"; import { createNotifyHelpers, TIMEOUTS } from "@/utils/notify"; import BulkMembersDialog from "./BulkMembersDialog.vue"; +const AUTO_REFRESH_INTERVAL = 15; + interface Member { admitted: boolean; content: string; @@ -296,7 +298,7 @@ export default class MembersList extends Vue { apiServer = ""; // Auto-refresh functionality - countdownTimer = 10; + countdownTimer = AUTO_REFRESH_INTERVAL; autoRefreshInterval: NodeJS.Timeout | null = null; lastRefreshTime = 0; previousMemberDidsIgnored: string[] = []; @@ -727,22 +729,22 @@ export default class MembersList extends Vue { startAutoRefresh() { this.stopAutoRefresh(); this.lastRefreshTime = Date.now(); - this.countdownTimer = 10; + this.countdownTimer = AUTO_REFRESH_INTERVAL; this.autoRefreshInterval = setInterval(() => { const now = Date.now(); const timeSinceLastRefresh = (now - this.lastRefreshTime) / 1000; - if (timeSinceLastRefresh >= 10) { + if (timeSinceLastRefresh >= AUTO_REFRESH_INTERVAL) { // Time to refresh this.refreshData(); this.lastRefreshTime = now; - this.countdownTimer = 10; + this.countdownTimer = AUTO_REFRESH_INTERVAL; } else { // Update countdown this.countdownTimer = Math.max( 0, - Math.round(10 - timeSinceLastRefresh), + Math.round(AUTO_REFRESH_INTERVAL - timeSinceLastRefresh), ); } }, 1000); // Update every second diff --git a/src/utils/PlatformServiceMixin.ts b/src/utils/PlatformServiceMixin.ts index bb17c00f..81519541 100644 --- a/src/utils/PlatformServiceMixin.ts +++ b/src/utils/PlatformServiceMixin.ts @@ -1115,8 +1115,8 @@ export const PlatformServiceMixin = { // ================================================= /** - * Save default settings - $saveSettings() - * Ultra-concise shortcut for updateDefaultSettings + * Save settings for currently active DID + * May be consolidated with $saveUserSettings() * * ✅ KEEP: This method will be the primary settings save method after consolidation * @@ -1204,8 +1204,8 @@ export const PlatformServiceMixin = { }, /** - * Save user-specific settings - $saveUserSettings() - * Ultra-concise shortcut for updateDidSpecificSettings + * Save DID-specific settings - $saveUserSettings() + * * @param did DID identifier * @param changes Settings changes to save * @returns Promise Success status diff --git a/src/views/OnboardMeetingSetupView.vue b/src/views/OnboardMeetingSetupView.vue index a3378330..f50a670b 100644 --- a/src/views/OnboardMeetingSetupView.vue +++ b/src/views/OnboardMeetingSetupView.vue @@ -7,7 +7,7 @@

- Onboarding Meeting + Onboarding Meeting Admin

@@ -589,6 +589,12 @@ export default class OnboardMeetingView extends Vue { ); return; } + if (!this.fullName) { + this.$saveSettings({ + firstName: this.newOrUpdatedMeetingInputs.userFullName, + }); + } + if (!this.newOrUpdatedMeetingInputs.password) { this.notify.warning( NOTIFY_MEETING_PASSWORD_REQUIRED.message,