Skip to content

Commit

Permalink
Changed Cancel to Close in Dialog
Browse files Browse the repository at this point in the history
Signed-off-by: rapterjet2004 <[email protected]>
  • Loading branch information
rapterjet2004 committed Nov 15, 2024
1 parent 3ff3465 commit 3cc2d81
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion NextcloudTalk/PollCreationViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ import UIKit
let alert = UIAlertController(title: NSLocalizedString("Creating poll failed", comment: ""),
message: NSLocalizedString("An error occurred while creating the poll", comment: ""),
preferredStyle: .alert)
alert.addAction(UIAlertAction(title: NSLocalizedString("Cancel", comment: ""), style: .cancel, handler: nil))
alert.addAction(UIAlertAction(title: NSLocalizedString("Close", comment: ""), style: .cancel, handler: nil))
self.present(alert, animated: true)
footerView.primaryButton.setButtonEnabled(enabled: true)
}
Expand Down
2 changes: 1 addition & 1 deletion NextcloudTalk/QRCodeLoginController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ import QRCodeReader
}
}))

alert.addAction(UIAlertAction(title: NSLocalizedString("Cancel", comment: ""), style: .cancel, handler: nil))
alert.addAction(UIAlertAction(title: NSLocalizedString("Close", comment: ""), style: .cancel, handler: nil))
default:
alert = UIAlertController(
title: NSLocalizedString("Not supported", comment: ""),
Expand Down
2 changes: 1 addition & 1 deletion NextcloudTalk/SettingsTableViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ class SettingsTableViewController: UITableViewController, UITextFieldDelegate, U
}
failedPhoneNumberDialog.addAction(retryAction)

let cancelAction = UIAlertAction(title: NSLocalizedString("Cancel", comment: ""), style: .default, handler: nil)
let cancelAction = UIAlertAction(title: NSLocalizedString("Close", comment: ""), style: .default, handler: nil)
failedPhoneNumberDialog.addAction(cancelAction)

self.present(failedPhoneNumberDialog, animated: true, completion: nil)
Expand Down
2 changes: 1 addition & 1 deletion NextcloudTalk/ShareLocationViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ - (void)showAuthorizationStatusDeniedAlert
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString] options:@{} completionHandler:nil];
}];
[alert addAction:settingsButton];
[alert addAction:[UIAlertAction actionWithTitle:NSLocalizedString(@"Cancel", nil) style:UIAlertActionStyleCancel handler:nil]];
[alert addAction:[UIAlertAction actionWithTitle:NSLocalizedString(@"Close", nil) style:UIAlertActionStyleCancel handler:nil]];
[self presentViewController:alert animated:YES completion:nil];
}

Expand Down
2 changes: 1 addition & 1 deletion NextcloudTalk/UserStatusSwiftUIView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ struct UserStatusSwiftUIView: View {
Button(action: {
dismiss()
}) {
Text("Cancel")
Text("Close")
.foregroundColor(Color(NCAppBranding.themeTextColor()))
}
}
Expand Down
2 changes: 1 addition & 1 deletion NextcloudTalk/VoiceMessageTranscribeViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ - (void)showSpeechRecognitionNotAvailable
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString] options:@{} completionHandler:nil];
}];
[alert addAction:settingsButton];
[alert addAction:[UIAlertAction actionWithTitle:NSLocalizedString(@"Cancel", nil)
[alert addAction:[UIAlertAction actionWithTitle:NSLocalizedString(@"Close", nil)
style:UIAlertActionStyleCancel
handler:^(UIAlertAction * _Nonnull action) {
[self closeViewController];
Expand Down

0 comments on commit 3cc2d81

Please sign in to comment.