mirror of
https://github.com/discourse/discourse.git
synced 2024-12-12 21:44:31 +08:00
42b1ca8f78
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
11 lines
276 B
JavaScript
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);
|
|
}
|
|
}
|