Skip to content

Commit 0826782

Browse files
authored
Merge pull request #192 from Pavel401/default-alias
added default alias to profile
2 parents 5edce7c + acc68f6 commit 0826782

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

lib/widgets/profilefunctions/manageprofile.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ManageProfile extends StatelessWidget {
2424
@override
2525
Widget build(BuildContext context) {
2626
var triples = [
27-
Tuple3(Icons.edit, 'Rename Profile', rename),
27+
Tuple3(Icons.edit, 'Rename Alias', rename),
2828
Tuple3(Icons.link, 'Configure Taskserver', configure),
2929
Tuple3(Icons.file_download, 'Export tasks', export),
3030
Tuple3(Icons.copy, 'Copy config to new profile', copy),

lib/widgets/profilefunctions/renameprofiledialog.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class RenameProfileDialog extends StatelessWidget {
2222
child: Center(
2323
child: AlertDialog(
2424
scrollable: true,
25-
title: const Text('Rename Profile'),
25+
title: const Text('Rename Alias'),
2626
content: TextField(controller: controller),
2727
actions: [
2828
TextButton(

lib/widgets/taskfunctions/profiles.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ class Profiles {
1919
File('${base.path}/profiles/$uuid/created')
2020
.writeAsStringSync('${DateTime.now().toUtc()}');
2121
File('${base.path}/profiles/$uuid/alias').createSync();
22-
22+
const alias = 'New Alias';
23+
setAlias(profile: uuid, alias: alias);
2324
return uuid;
2425
}
2526

0 commit comments

Comments
 (0)