Skip to content

Commit d47ca97

Browse files
authored
Cherry picked fixes (#44)
* More fixes * Tags
1 parent da6b7fd commit d47ca97

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

app/Models/ResourceEdits.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function sluggable(): array
6060
{
6161
return [
6262
'slug' => [
63-
'source' => ['edit_title', 'computer_science_resource_id'],
63+
'source' => ['edit_title', 'id'],
6464
'unique' => true,
6565
],
6666
];

deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@
6666
chdir: "{{ project_path }}"
6767

6868
- name: Remove old build directory
69-
command: rm -rf /var/www/ComputerScienceResources.com/public/build
69+
file:
70+
path: /var/www/ComputerScienceResources.com/public/build
71+
state: absent
7072
when: not (skip_frontend | default(false))
7173

7274
- name: Swap new_build into build

resources/js/Pages/ResourceEdits/Create.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ const submit = async () => {
475475
</div>
476476

477477
<div class="mt-4">
478-
<InputLabel value="Programming Language Tags" />
478+
<InputLabel value="Programming Languages/Frameworks" />
479479
<TagSelector
480480
:tag-type="'programming_languages_tags'"
481481
v-model="

resources/js/Pages/Resources/Form/TagsFields.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const validateAndNext = async () => {
8989

9090
<!-- Tag Selector for Programming Languages -->
9191
<h2 class="text-2xl font-bold mt-5 mb-1 text-center text-gray-900 dark:text-gray-100">
92-
Programming languages/frameworks taught (if any)?
92+
Programming Languages/Frameworks taught (if any)?
9393
</h2>
9494
<p class="text-center italic mb-2 text-gray-600 dark:text-gray-300">python, c++, c#, vue.js, pytorch</p>
9595
<TagSelector

0 commit comments

Comments
 (0)