Implement proper handling for inactive/active subscriptions
This commit is contained in:
@@ -267,7 +267,7 @@ class _KeyTokenViewPageState extends State<KeyTokenViewPage> {
|
||||
icon: FontAwesomeIcons.solidInputText,
|
||||
title: 'Name',
|
||||
values: [_nameOverride ?? keytokenPreview!.name],
|
||||
iconActions: isOwned ? [(FontAwesomeIcons.penToSquare, _showEditName)] : [],
|
||||
iconActions: isOwned ? [(FontAwesomeIcons.penToSquare, null, _showEditName)] : [],
|
||||
);
|
||||
} else if (_editName == EditState.saving) {
|
||||
return Padding(
|
||||
@@ -357,7 +357,7 @@ class _KeyTokenViewPageState extends State<KeyTokenViewPage> {
|
||||
icon: FontAwesomeIcons.shieldKeyhole,
|
||||
title: 'Permissions',
|
||||
values: _formatPermissions(keyToken.permissions),
|
||||
iconActions: [(FontAwesomeIcons.penToSquare, _editPermissions)],
|
||||
iconActions: [(FontAwesomeIcons.penToSquare, null, _editPermissions)],
|
||||
);
|
||||
} else {
|
||||
w1 = UI.metaCard(
|
||||
@@ -374,7 +374,7 @@ class _KeyTokenViewPageState extends State<KeyTokenViewPage> {
|
||||
icon: FontAwesomeIcons.solidSnake,
|
||||
title: 'Channels',
|
||||
values: (keyToken.allChannels) ? ['All Channels'] : keyToken.channels, //TODO show channel names
|
||||
iconActions: [(FontAwesomeIcons.penToSquare, _editChannels)],
|
||||
iconActions: [(FontAwesomeIcons.penToSquare, null, _editChannels)],
|
||||
);
|
||||
} else {
|
||||
w2 = UI.metaCard(
|
||||
|
||||
Reference in New Issue
Block a user