mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 09:21:40 +08:00

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);
|
|
}
|
|
}
|