* @brief Add action */
| 2624 | * @brief Add action |
| 2625 | */ |
| 2626 | API::CommandResponse API::Handlers::ProjectHandler::actionAdd(const QString& id, |
| 2627 | const QJsonObject& params) |
| 2628 | { |
| 2629 | Q_UNUSED(params) |
| 2630 | |
| 2631 | DataModel::ProjectModel::instance().addAction(); |
| 2632 | |
| 2633 | QJsonObject result; |
| 2634 | result[QStringLiteral("added")] = true; |
| 2635 | return CommandResponse::makeSuccess(id, result); |
| 2636 | } |
| 2637 | |
| 2638 | /** |
| 2639 | * @brief Delete an action by id |