discourse/app/assets/javascripts/admin/addon/routes/admin-permalinks-edit.js
Krzysztof Kotlarek 42b1ca8f78
UX: redesign admin permalinks page (#29634)
Redesign the permalinks page to follow the UX guide. In addition, the ability to edit permalinks was added.

This change includes:
- move to RestModel
- added Validations
- update endpoint and clear old values after the update
- system specs and improvements for unit tests
2024-11-14 10:03:58 +11:00

11 lines
276 B
JavaScript

import { service } from "@ember/service";
import DiscourseRoute from "discourse/routes/discourse";
export default class AdminPermalinksEditRoute extends DiscourseRoute {
@service store;
model(params) {
return this.store.find("permalink", params.permalink_id);
}
}