Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Письменов Дмитрий Иванович
/
yourroomads
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3c283578
authored
Jun 08, 2021
by
Vladislav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#19466 Остановка РК (исправление включения целевых РК)
1 parent
409d0b5d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
resources/js/Pages/Tokens/CitySettings.vue
resources/js/Pages/Tokens/Edit.vue
routes/web.php
resources/js/Pages/Tokens/CitySettings.vue
View file @
3c28357
...
...
@@ -78,6 +78,7 @@
</td>
<td
class=
"border-t text-center"
>
<input
:checked=
"dictionary_campaign.enabled"
disabled=
"disabled"
@
change=
"enabled(city.id, dictionary_campaign.campaign_id, !dictionary_campaign.enabled)"
type=
"checkbox"
>
...
...
resources/js/Pages/Tokens/Edit.vue
View file @
3c28357
...
...
@@ -116,9 +116,9 @@ export default {
})
},
cityEnabled
(
city_id
,
campaign_id
,
enabled
)
{
this
.
$inertia
.
post
(
this
.
route
(
'token.city.campaign.enabled'
,
[
this
.
token
.
id
,
city_id
,
campaign_id
]),
{
enabled
:
enabled
?
1
:
0
,
})
//
this.$inertia.post(this.route('token.city.campaign.enabled', [this.token.id, city_id, campaign_id]), {
//
enabled: enabled ? 1 : 0,
//
})
},
cityDelete
(
id
)
{
if
(
confirm
(
'Are you sure you want to delete this city?'
))
{
...
...
routes/web.php
View file @
3c28357
...
...
@@ -191,8 +191,8 @@ Route::group(['middleware' => 'auth'], function () {
->
name
(
'token.city.campaign.updated'
);
Route
::
post
(
'token/city/campaign/synced/{token}/{dictionary}/{campaign_id}'
,
[
TokensController
::
class
,
'syncedCityCampaign'
])
->
name
(
'token.city.campaign.synced'
);
Route
::
post
(
'token/city/campaign/enabled/{token}/{dictionary}/{campaign_id}'
,
[
TokensController
::
class
,
'enabledCityCampaign'
])
->
name
(
'token.city.campaign.enabled'
);
//
Route::post('token/city/campaign/enabled/{token}/{dictionary}/{campaign_id}', [TokensController::class, 'enabledCityCampaign'])
//
->name('token.city.campaign.enabled');
Route
::
delete
(
'token/city/{token}/{dictionary}'
,
[
TokensController
::
class
,
'destroyCity'
])
->
name
(
'token.city.destroy'
);
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment