mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 03:47:16 +08:00
FEATURE: Add 'Create topic' automation script (#26552)
This commit adds a new automation script for creating topics. It's very similar to the existing 'create a post' automation, except that it posts new topics in a specific category and with optional tags. Internal topic: t/125829.
This commit is contained in:
@ -18,6 +18,6 @@ export default class PlaceholdersList extends Component {
|
||||
|
||||
@action
|
||||
copyPlaceholder(placeholder) {
|
||||
this.args.onCopy(`${this.args.currentValue}{{${placeholder}}}`);
|
||||
this.args.onCopy(`${this.args.currentValue || ""}{{${placeholder}}}`);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user