use private as default visibility
This commit is contained in:
parent
5ee7071dff
commit
443ff86aee
@ -27,7 +27,7 @@ defmodule MemexWeb.ContextLive.Index do
|
|||||||
defp apply_action(%{assigns: %{current_user: %{id: current_user_id}}} = socket, :new, _params) do
|
defp apply_action(%{assigns: %{current_user: %{id: current_user_id}}} = socket, :new, _params) do
|
||||||
socket
|
socket
|
||||||
|> assign(page_title: gettext("new context"))
|
|> assign(page_title: gettext("new context"))
|
||||||
|> assign(context: %Context{user_id: current_user_id})
|
|> assign(context: %Context{visibility: :private, user_id: current_user_id})
|
||||||
end
|
end
|
||||||
|
|
||||||
defp apply_action(socket, :index, _params) do
|
defp apply_action(socket, :index, _params) do
|
||||||
|
@ -27,7 +27,7 @@ defmodule MemexWeb.NoteLive.Index do
|
|||||||
defp apply_action(%{assigns: %{current_user: %{id: current_user_id}}} = socket, :new, _params) do
|
defp apply_action(%{assigns: %{current_user: %{id: current_user_id}}} = socket, :new, _params) do
|
||||||
socket
|
socket
|
||||||
|> assign(page_title: gettext("new note"))
|
|> assign(page_title: gettext("new note"))
|
||||||
|> assign(note: %Note{user_id: current_user_id})
|
|> assign(note: %Note{visibility: :private, user_id: current_user_id})
|
||||||
end
|
end
|
||||||
|
|
||||||
defp apply_action(socket, :index, _params) do
|
defp apply_action(socket, :index, _params) do
|
||||||
|
@ -27,7 +27,7 @@ defmodule MemexWeb.PipelineLive.Index do
|
|||||||
defp apply_action(%{assigns: %{current_user: %{id: current_user_id}}} = socket, :new, _params) do
|
defp apply_action(%{assigns: %{current_user: %{id: current_user_id}}} = socket, :new, _params) do
|
||||||
socket
|
socket
|
||||||
|> assign(page_title: gettext("new pipeline"))
|
|> assign(page_title: gettext("new pipeline"))
|
||||||
|> assign(pipeline: %Pipeline{user_id: current_user_id})
|
|> assign(pipeline: %Pipeline{visibility: :private, user_id: current_user_id})
|
||||||
end
|
end
|
||||||
|
|
||||||
defp apply_action(socket, :index, _params) do
|
defp apply_action(socket, :index, _params) do
|
||||||
|
Loading…
Reference in New Issue
Block a user