Skip to content

Commit c759b97

Browse files
authored
Rename "Unlisted" survey access to "Anyone with the link" (#2559)
1 parent d734023 commit c759b97

10 files changed

Lines changed: 15 additions & 21 deletions

web/src/app/components/create-survey/create-survey.component.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,6 @@
114114
</div>
115115

116116
<div class="right-button-section">
117-
<ground-copy-survey-controls
118-
*ngIf="createSurveyPhase === CreateSurveyPhase.SHARE_SURVEY"
119-
[surveyId]="surveyId"
120-
></ground-copy-survey-controls>
121-
122117
<button
123118
id="continue-button"
124119
class="continue-button"

web/src/app/components/create-survey/create-survey.module.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
2424
import { CreateSurveyComponent } from 'app/components/create-survey/create-survey.component';
2525
import { DataSharingTermsModule } from 'app/components/create-survey/data-sharing-terms/data-sharing-terms.module';
2626
import { TaskDetailsModule } from 'app/components/create-survey/task-details/task-details.module';
27-
import { CopySurveyControlsModule } from 'app/components/shared/copy-survey-controls/copy-survey-controls.module';
2827
import { HeaderModule } from 'app/components/shared/header/header.module';
2928
import { ShareSurveyModule } from 'app/components/shared/share-survey/share-survey.module';
3029

@@ -44,7 +43,6 @@ import { SurveyLoiModule } from './survey-loi/survey-loi.module';
4443
MatInputModule,
4544
MatProgressBarModule,
4645
MatProgressSpinnerModule,
47-
CopySurveyControlsModule,
4846
ShareSurveyModule,
4947
StepCardModule,
5048
SurveyDetailsModule,

web/src/app/components/edit-survey/edit-survey.component.html

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -139,15 +139,6 @@ <h1 class="edit-survey-title" *ngIf="sectionTitle !== ''">
139139
</h1>
140140

141141
<router-outlet></router-outlet>
142-
143-
<div
144-
class="button-section"
145-
*ngIf="navigationService.isShareSurveyPage()"
146-
>
147-
<ground-copy-survey-controls
148-
[surveyId]="surveyId() || ''"
149-
></ground-copy-survey-controls>
150-
</div>
151142
</div>
152143
</div>
153144
</div>

web/src/app/components/edit-survey/edit-survey.module.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
2626
import { RouterModule } from '@angular/router';
2727

2828
import { EditSurveyComponent } from 'app/components/edit-survey/edit-survey.component';
29-
import { CopySurveyControlsModule } from 'app/components/shared/copy-survey-controls/copy-survey-controls.module';
3029

3130
import { SurveyHeaderModule } from '../main-page/survey-header/survey-header.module';
3231

@@ -42,7 +41,6 @@ import { SurveyHeaderModule } from '../main-page/survey-header/survey-header.mod
4241
MatMenuModule,
4342
MatProgressSpinnerModule,
4443
RouterModule,
45-
CopySurveyControlsModule,
4644
SurveyHeaderModule,
4745
],
4846
exports: [EditSurveyComponent],

web/src/app/components/shared/general-access-control/general-access-control.component.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,9 @@
4141
{{generalAccessLabels.get(selectedGeneralAccess)?.description}}
4242
</div>
4343
</div>
44+
45+
<ground-copy-survey-controls
46+
*ngIf="selectedGeneralAccess === SurveyGeneralAccess.UNLISTED"
47+
[surveyId]="survey()?.id || ''"
48+
></ground-copy-survey-controls>
4449
</div>

web/src/app/components/shared/general-access-control/general-access-control.component.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,8 @@
3737
width: fit-content;
3838
}
3939
}
40+
41+
ground-copy-survey-controls {
42+
margin-left: auto;
43+
}
4044
}

web/src/app/components/shared/general-access-control/general-access-control.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const generalAccessLabels = Map<
4040
{
4141
description: $localize`:@@app.texts.generalAccess.unlisted:Everyone with the survey QR code or link can collect data for this survey`,
4242
icon: 'account_circle',
43-
label: $localize`:@@app.labels.unlisted:Unlisted`,
43+
label: $localize`:@@app.labels.unlisted:Anyone with the link`,
4444
},
4545
],
4646
[

web/src/app/components/shared/general-access-control/general-access-control.module.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,15 @@ import { MatInputModule } from '@angular/material/input';
2525
import { MatListModule } from '@angular/material/list';
2626
import { MatSelectModule } from '@angular/material/select';
2727

28+
import { CopySurveyControlsModule } from 'app/components/shared/copy-survey-controls/copy-survey-controls.module';
29+
2830
import { GeneralAccessControlComponent } from './general-access-control.component';
2931

3032
@NgModule({
3133
declarations: [GeneralAccessControlComponent],
3234
imports: [
3335
CommonModule,
36+
CopySurveyControlsModule,
3437
FormsModule,
3538
MatButtonModule,
3639
MatDialogModule,

web/src/app/components/shared/survey-list/survey-list.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ <h1 class="page-title" i18n="@@app.labels.surveys">Surveys</h1>
128128
<span
129129
*ngIf="filter === SurveyListFilter.UNLISTED"
130130
i18n="@@app.labels.unlisted"
131-
>Unlisted</span
131+
>Anyone with the link</span
132132
>
133133
<span *ngIf="filter === SurveyListFilter.PUBLIC" i18n="@@app.labels.public"
134134
>Public</span

web/src/locale/messages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
"app.texts.generalAccess.restricted": "Only people with access can open with the link",
108108
"app.labels.restricted": "Restricted",
109109
"app.texts.generalAccess.unlisted": "Everyone with the survey QR code or link can collect data for this survey",
110-
"app.labels.unlisted": "Unlisted",
110+
"app.labels.unlisted": "Anyone with the link",
111111
"app.texts.generalAccess.public": "Anyone can find and collect data for this survey",
112112
"app.labels.public": "Public",
113113
"app.labels.signOut": "Sign out",

0 commit comments

Comments
 (0)