Skip to content

Commit

Permalink
change text
Browse files Browse the repository at this point in the history
  • Loading branch information
sansan88 committed Jun 14, 2024
1 parent ebefbcd commit 785c551
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/app/pages/club-admin-list/club-admin-list.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ng-container *ngIf="clubAdminList$ | async as clubAdminList">
<ion-buttons *ngIf="clubAdminList.length > 0" slot="secondary">
<ion-button *ngIf="!allowEdit" (click)="edit()">{{"common.edit" | translate}}</ion-button>
<ion-button *ngIf="allowEdit" (click)="edit()">{{"common.cancel" | translate}}</ion-button>
<ion-button *ngIf="allowEdit" (click)="edit()">{{"common.done" | translate}}</ion-button>
</ion-buttons>
</ng-container>
<ion-title>Administratoren</ion-title>
Expand Down
6 changes: 3 additions & 3 deletions src/app/pages/club-admin-list/club-admin-list.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,15 +220,15 @@ export class ClubAdminListPage implements OnInit {
finalize(async () => {
if (memberSelect.length > 0) {
const alert = await this.alertCtrl.create({
header: "Administrator hinzufügen",
header: await lastValueFrom(this.translate.get("common.addAdministrator")),
inputs: memberSelect,
buttons: [
{
text: "Abbrechen",
text: await lastValueFrom(this.translate.get("common.cancel")),
handler: () => console.log("Cancel clicked"),
},
{
text: "Hinzufügen",
text: await lastValueFrom(this.translate.get("common.add")),
handler: (data) => {
for (let member of data){
this.fbService.addClubAdmin(this.club.id, member.id).catch(e=>{
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/club-member-list/club-member-list.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
>{{"common.edit" | translate}}</ion-button
>
<ion-button *ngIf="allowEdit" (click)="edit()"
>{{"common.cancel" | translate}}</ion-button
>{{"common.done" | translate}}</ion-button
>
</ion-buttons>
<ion-title>Mitglieder</ion-title>
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/team-admin-list/team-admin-list.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<ion-toolbar>
<ion-buttons slot="secondary">
<ion-button *ngIf="!allowEdit" (click)="edit()">{{"common.edit" | translate}}</ion-button>
<ion-button *ngIf="allowEdit" (click)="edit()">{{"common.cancel" | translate}}</ion-button>
<ion-button *ngIf="allowEdit" (click)="edit()">{{"common.done" | translate}}</ion-button>
</ion-buttons>
<ion-title>Administratoren</ion-title>
<ion-buttons slot="primary">
Expand Down
6 changes: 3 additions & 3 deletions src/app/pages/team-admin-list/team-admin-list.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,15 +215,15 @@ export class TeamAdminListPage implements OnInit {
finalize(async () => {
if (memberSelect.length > 0) {
const alert = await this.alertCtrl.create({
header: "Administrator hinzufügen",
header: await lastValueFrom(this.translate.get("common.addAdministrator")),
inputs: memberSelect,
buttons: [
{
text: "Abbrechen",
text: await lastValueFrom(this.translate.get("common.cancel")),
handler: () => console.log("Cancel clicked"),
},
{
text: "Hinzufügen",
text: await lastValueFrom(this.translate.get("common.add")),
handler: (data) => {
for (let member of data){
this.fbService.addTeamAdmin(this.team.id, member.id).catch(e=>{
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/team-member-list/team-member-list.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
>{{"common.edit" | translate}}</ion-button
>
<ion-button *ngIf="allowEdit" (click)="edit()"
>{{"common.cancel" | translate}}</ion-button
>{{"common.done" | translate}}</ion-button
>
</ion-buttons>
<ion-title >Mitglieder</ion-title>
Expand Down
6 changes: 3 additions & 3 deletions src/app/pages/team-member-list/team-member-list.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,15 +223,15 @@ export class TeamMemberListPage implements OnInit {
).subscribe(async (memberSelect: any) => {
if (memberSelect && memberSelect.length > 0) {
const alert = await this.alertCtrl.create({
header: 'Mitglied hinzufügen',
header: await lastValueFrom(this.translate.get("common.addMember")),
inputs: memberSelect,
buttons: [
{
text: 'Abbrechen',
text: await lastValueFrom(this.translate.get("common.cancel")),
handler: () => console.log('Cancel clicked'),
},
{
text: 'Hinzufügen',
text: await lastValueFrom(this.translate.get("common.add")),
handler: (teamMemberList) => {
console.log(teamMemberList);
for (const member of teamMemberList) {
Expand Down
6 changes: 3 additions & 3 deletions src/app/pages/team/team-detail/team.page.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<ng-container *ngIf="team$ | async as team; else header">
<ion-header [translucent]="true">
<ion-toolbar>
<ion-buttons slot="secondary">
<!--<ion-buttons slot="secondary">
<ion-button *ngIf="!allowEdit" (click)="edit()"
>{{"common.edit" | translate}}</ion-button
>
<ion-button *ngIf="allowEdit" (click)="edit()"
>{{"common.cancel" | translate}}</ion-button
>{{"common.done" | translate}}</ion-button
>
</ion-buttons>
</ion-buttons>-->
<ion-title>{{team?.name}}</ion-title>
<ion-buttons slot="primary">
<ion-button (click)="close()"
Expand Down
4 changes: 3 additions & 1 deletion src/assets/lang/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@
"members": "Mitglieder",
"member": "Mitglied",
"admins": "Administratoren",

"addAdministrator": "Administrator hinzufügen",
"addMember": "Mitglied hinzufügen",
"add": "hinzufügen",
"club": "Club",
"description": "Beschreibung",
"location": "Location",
Expand Down

0 comments on commit 785c551

Please sign in to comment.