| @@ 83-94 (lines=12) @@ | ||
| 80 | * @return DataResponse |
|
| 81 | * @internal param string $color |
|
| 82 | */ |
|
| 83 | public function updateStylesheet($setting, $value) { |
|
| 84 | $this->template->set($setting, $value); |
|
| 85 | return new DataResponse( |
|
| 86 | [ |
|
| 87 | 'data' => |
|
| 88 | [ |
|
| 89 | 'message' => $this->l->t('Saved') |
|
| 90 | ], |
|
| 91 | 'status' => 'success' |
|
| 92 | ] |
|
| 93 | ); |
|
| 94 | } |
|
| 95 | ||
| 96 | /** |
|
| 97 | * Update the logos and background image |
|
| @@ 145-157 (lines=13) @@ | ||
| 142 | * @param string $setting setting which should be reverted |
|
| 143 | * @return DataResponse |
|
| 144 | */ |
|
| 145 | public function undo($setting) { |
|
| 146 | $value = $this->template->undo($setting); |
|
| 147 | return new DataResponse( |
|
| 148 | [ |
|
| 149 | 'data' => |
|
| 150 | [ |
|
| 151 | 'value' => $value, |
|
| 152 | 'message' => $this->l->t('Saved') |
|
| 153 | ], |
|
| 154 | 'status' => 'success' |
|
| 155 | ] |
|
| 156 | ); |
|
| 157 | } |
|
| 158 | ||
| 159 | /** |
|
| 160 | * @PublicPage |
|