feat: Edit displayname and attribution for sticker packs
This commit is contained in:
parent
87ca3c1f1f
commit
489402be91
2 changed files with 27 additions and 2 deletions
|
|
@ -171,6 +171,28 @@ class EmotesSettingsController extends State<EmotesSettings> {
|
|||
});
|
||||
}
|
||||
|
||||
void submitDisplaynameAction() {
|
||||
if (readonly) return;
|
||||
packDisplayNameController.text = packDisplayNameController.text.trim();
|
||||
final input = packDisplayNameController.text;
|
||||
|
||||
setState(() {
|
||||
pack!.pack.displayName = input;
|
||||
showSave = true;
|
||||
});
|
||||
}
|
||||
|
||||
void submitAttributionAction() {
|
||||
if (readonly) return;
|
||||
packAttributionController.text = packAttributionController.text.trim();
|
||||
final input = packAttributionController.text;
|
||||
|
||||
setState(() {
|
||||
pack!.pack.attribution = input;
|
||||
showSave = true;
|
||||
});
|
||||
}
|
||||
|
||||
void submitImageAction(
|
||||
String oldImageCode,
|
||||
ImagePackImageContent image,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue